<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj={
            '0':'仙女',
            '1':12,
            '2':'female',
            'length':3
        }
        //法一：
        // Array.prototype.slice.call(obj).forEach(function(item,index,arr){
        //     console.log(item);
        // })
        //法二：
        var result=Array.from(obj);
        console.log(result)
    </script>
</head>
<body>
    
</body>
</html>